home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C++ / Applications / PICSee Dust 1.01 / Quaternary Source / Monitors.h < prev    next >
Text File  |  1995-11-02  |  1KB  |  54 lines

  1. #ifndef MONITORS_H_
  2. #define MONITORS_H_
  3.  
  4. /*
  5.     Written by Norman Basham, Feb. 1994
  6.     With very minor changes by Hiep Dam, Sept. 1994
  7.     
  8.     Version History
  9.         1.1 Nov 1 95 HTD
  10.             Added GetDeepestDevice();
  11. */
  12.  
  13. //    PROTOTYPES
  14. //    ------------------------------------------------------------------------
  15.  
  16. //    WINDOW STUFF
  17.     void Place (WindowPtr wp, short place);
  18.     void GetCenteredWindowTopLeft (WindowPtr wp, const Rect screenRect, short *top, short *left);
  19.     void Move (WindowPtr wp, short top, short left);
  20.     short GetDragBarHeight (WindowPtr wp);
  21.  
  22. //    DEVICE STUFF
  23.     Rect GetDeviceGRect (GDHandle gdh);
  24.     Rect GetDeepDeviceGRect ();
  25.     GDHandle GetDominantDevice (Rect *r);
  26.     GDHandle GetBigDevice (void);
  27.     short GetDeviceDepth (GDHandle gdh);
  28.     GDHandle GetDeviceWithThisDepth (short depth);
  29.     Boolean IsActiveScreenDevice (GDHandle theDevice);
  30.     Boolean IsMainDevice (GDHandle theDevice);
  31.     
  32.     GDHandle GetDeepestDevice();
  33.  
  34. //    RECT STUFF
  35.     void GlobalToLocalRect (Rect *r);
  36.     long GetRectArea (Rect r);
  37.     void ZeroTopLeft (Rect *r);
  38.     void SetTopLeft (Rect *r, short top, short left);
  39.     void CenterRect (const Rect centerOnRect, Rect *rectToCenter);
  40.  
  41.     
  42. //    ------------------------------------------------------------------------
  43.  
  44. // CONSTANTS used by Place()
  45.  enum
  46.      {
  47.      kOnBigDevice = 1,
  48.      kOnDeepDevice,
  49.      kCenterOnDeepDevice,
  50.      kOnMainDevice,
  51.      kCenterOnMainDevice
  52.      };
  53.  
  54. #endif // MONITORS_H_